﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMaster.Master"
    Inherits="System.Web.Mvc.ViewPage<Micrhard.FMCG.Server.Models.EmployeeModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    个人信息
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="section-header">
        <div class="title">
            <img src="<%=Url.Content("~/Content/images/ico-catalog.png")%>" alt="" />
            个人信息
        </div>
        <div class="options">
            &nbsp;
        </div>
    </div>
    <table class="adminContent">
        <tr>
            <td class="adminTitle">
                姓名:
            </td>
            <td class="adminData">
                <%=Model.Name %>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                联系方式:
            </td>
            <td class="adminData">
                <%=Model.Cellphone %>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                QQ邮件:
            </td>
            <td class="adminData">
                <%=Model.QQMail %>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                岗位:
            </td>
            <td class="adminData">
                <%=Model.RangeDisplay %>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                所属公司:
            </td>
            <td class="adminData">
                <%=Model.BelongCompanyName %>
            </td>
        </tr>
        <%
            using (Html.BeginForm("UpdatePassword", "Account", FormMethod.Post))
            {
        %>
        <tr>
            <td class="adminTitle">
                旧密码:
            </td>
            <td class="adminData">
                <%=Html.Password("oldPassword")%>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                新密码:
            </td>
            <td class="adminData">
                <%=Html.Password("newPassword")%>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                新密码确认:
            </td>
            <td class="adminData">
                <%=Html.Password("newPasswordCfm")%>
                <input type="submit" class="t-button" value="保存" name="save" />
            </td>
        </tr>
        <tr>
            <td>
                (注:密码保存成功后，系统会自动退出，请使用新密码登录)
            </td>
            <td>
                <%=Html.ValidationMessage("failed")%>
            </td>
        </tr>
        <% }%>
    </table>
</asp:Content>
